<?php

namespace App\Models\SystemManagement;

use App\Models\CommonModel;
use App\Models\Constant\Fields;
use Illuminate\Database\Eloquent\Model;

class UserWorkspace extends CommonModel
{
    protected $table = 'user_workspaces';
    protected $hidden = ['deleted_at','created_at','updated_at'];

    function workspace(){
        return $this->belongsTo(self::$SYSTEM.'\WorkSpace',Fields::WS_ID,Fields::ID)
            ->select('id','name');
    }
}
